package exam12;

/**
 * @author HB
 * @version 1.0
 * @description
 * @date 2021/7/2
 */
public class Client{
    public static void main(String args[]){
        AbstractChatroom happyChat=new ChatGroup();
        Member member1,member2,member3,member4,member5;
        member1=new DiamondMember("钱一");
        member2=new DiamondMember("赵二");
        member3=new CommonMember("张三");
        member4=new CommonMember("李四");
        member5=new CommonMember("王五");
        happyChat.register(member1);
        happyChat.register(member2);
        happyChat.register(member3);
        happyChat.register(member4);
        happyChat.register(member5);

        member1.sendText("赵二","赵二，你知道滕王阁序吗？");
        member2.sendText("钱一","赵二，我知道啊！豫章故郡，洪都新府，星分翼轸……望长安于日下，目吴会于云间……");
        member1.sendText("赵二","赞");
        member1.sendImage("赵二","滑稽.jpg");
        member1.sendImage("赵二","狗头.jpg");

        member3.sendText("李四","你知道“落霞与孤鹜齐飞”下一句是什么吗？");
        member3.sendText("王五","你知道“穷睇眄于中天”下一句是什么吗？");
        member4.sendText("张三","秋水共长天一色！");
        member5.sendText("张三","极娱游于暇日！");
        member3.sendImage("李四","滑稽.jpg");
        member3.sendImage("王五","狗头.jpg");
    }
}

